<!DOCTYPE html>
<html lang="zh"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head th:fragment="scripts">
    <meta charset="UTF-8">
    <title>煎饼云</title>
    <link rel="stylesheet" th:href="@{/styles.css}">
</head>
<body>
<div layout:fragment="header">
    <a th:href="@{/}">
        <img th:src="@{/images/TacoCloud.png}" class="logo"/>
    </a>
    <div class="header">
        <form method="POST" th:action="@{/logout}" id="logoutForm">
            <span sec:authentication="principal.fullname"
                  sec:authorize="isAuthenticated()">
                用户名
            </span>
            <input type="submit" value="登出">
        </form>
    </div>
</div>

<section layout:fragment="main">
    主要内容在这里
</section>

<div layout:fragment="footer" class="footer"></div>
</body>
</html>